package com.spt.springbootzhsx.mapper;

import com.spt.springbootzhsx.entity.Rate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

@Mapper
public interface RateMapper {
    ArrayList<Rate> getRateByMid(Integer mid);
    ArrayList<Rate> getRateByUid(Integer uid);
    ArrayList<Rate> getRateByUidAndMid(@Param("uid") Integer uid, @Param("mid") Integer mid);
    int addRate(Rate rate);
    int deleteRate(Integer rid);
    int updateRate(Rate rate);
}
